<template>
  <div class="forgetPsd login">
    <div class="content theme--light">
      <div class="login-content">
        <div class="close-content" @click="goBack">
          <span class="icon iconfont close">&#xe748;</span>
        </div>
        <img
          class="login-logo"
          src="/static/img/unboxingDetail/logo_light.png"
          draggable="false"
        />
        <div class="login-left">
          <div class="login-head">FORGOT PASSWORD</div>
          <div>
            <div class="login-row">
              <div class="login-row-label">E-mail</div>
              <div class="login-row-input">
                <div class="row-input">
                  <van-field
                    style="height: 100%"
                    v-model="registerForm.email"
                  />
                </div>
              </div>
            </div>
            <div class="login-row">
              <div class="login-row-label">email verity code</div>
              <div class="login-row-input">
                <div class="row-input">
                  <van-field
                    style="height: 100%"
                    v-model="registerForm.verityCode"
                  />
                </div>
                <div class="send-btn">
                  <span>Send</span>
                </div>
              </div>
            </div>
            <div class="login-row">
              <div class="login-row-label">New Password</div>
              <div class="login-row-input">
                <div class="row-input">
                  <van-field
                    style="height: 100%"
                    v-model="registerForm.password"
                  />
                </div>
              </div>
            </div>

            <div class="login-btn">SUBMIT</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  data() {
    return {
      registerForm: {
        email: "",
        verityCode: "",
        password: "",
        whatsApp: "",
      },
    };
  },
  methods:{
   goBack(){
        this.$router.go(-1);
   }
  },
  computed: {
    ...mapState([
      "bgColor",
      "reviewSearchBgColor",
      "color",
      "nav_bc",
      "main_bc_opacity",
      "main_bc_0_8",
      "main_color_0_1",
      "main_color_0_1_1",
      "main_bc_invert",
      "content_bc",
      "sub_color",
      "text_color",
      "dm_bc",
      "price_border",
      "main_bc_color",
      "item_bc",
      "menu_color",
      "unboxing_im_bc",
      "menu_d_bg",
      "menu_border",
      "pop_bg",
      "main_bc_color",
      "tab_bc",
    ]),
  },
};
</script>

<style lang="scss" scoped>
.forgetPsd {
  display: block;
  width: 100%;
  height: 100%;
  .content {
    box-sizing: border-box;
    .login-content {
      max-width: 850px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      position: relative;
      .close-content {
        position: absolute;
        top: calc(0px + 5px);
        right: 10px;
        z-index: 1;
        cursor: pointer;
        .close {
          font-size: 24px;
        }
      }

      .login-logo {
        width: 93px;
        height: 93px;
        margin-top: 52px;
      }

      .login-left {
        .login-head {
          width: 100%;
          height: 40px;
          margin-bottom: 16px;
          text-align: center;
        }
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        .forget-row {
          text-align: center;
          cursor: pointer;
          color: #779099;
          font-size: 12px;
          font-weight: 500;
          line-height: normal;
          letter-spacing: 0.11px;
          margin-top: 10px;
        }
        .google-login-btn {
          width: 120px;
          height: 40px;
          border-radius: 40px;
          display: flex;
          justify-content: center;
          align-items: center;
          cursor: pointer;
          border: 1px solid var(--content-bc);
          background-color: var(--content-bc);
          margin: 0 10px;
        }
        .google-login-content {
          background: transparent;
          outline: none;
          border: none;
          padding: 0;
        }
        .other-row {
          display: flex;
          justify-content: center;
          align-items: center;
          margin: 12px 0;
        }
        .sign-tip {
          margin-top: 30px;
          font-size: 12px;
          text-align: center;
          color: #4d6168;
        }
        .login-btn {
          width: 100%;
          height: 45px;
          border-radius: 45px;
          background: linear-gradient(98deg, #f48836, #f4364c 100%);
          margin-top: 40px;
          display: flex;
          justify-content: center;
          align-items: center;
          cursor: pointer;
          color: #fff;
          font-weight: 700;
        }

        .login-row {
          width: 100%;
          position: relative;
          margin-bottom: 10px;
          .send-btn {
            position: absolute;
            top: 50%;
            right: 10px;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
            width: 114px;
            border-radius: 6px;
            height: 31px;
            font-size: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(98deg, #f48836, #f4364c 100%);
            color: #fff;
          }
          .row-input {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            padding: 0 20px;
            box-sizing: border-box;
            color: #82969d;
          }
          .login-row-label {
            font-size: 12px;
            margin-bottom: 8px;
            color: #4d6168;
          }
          .login-row-input {
            width: 100%;
            border-radius: 4px;
            position: relative;
            color: #82969d;
            height: 45px;
            border: 1px solid #82969d;
            background: var(--content-bc);
          }
        }
      }
    }
  }
}
</style>
<style lang="scss">
.login {
  .van-tab__text--ellipsis {
    font-size: 16px;
  }
  .van-tabs--line .van-tabs__wrap {
    border-bottom: 1px #4d6168 solid;
    margin-bottom: 16px;
  }
}
</style>